﻿using System.Collections.Generic;

namespace PropertyExpression.ControllableQuery.Toolkit
{
    public class CheckQueryContext
    {
        private readonly HashSet<string> hashSet = new HashSet<string>();
        public bool IsAlreadyChecked(string queryText)
        {
            return hashSet.Contains(queryText);
        }

        public void AddQueryText(string queryText)
        {
            hashSet.Add(queryText);
        }
    }
}